package com.xique.door.bean.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xique.common.core.annotation.Excel;
import lombok.Data;

import java.util.Date;

/**
 * @author shd
 * @create 2022/4/20 14:54
 */
@Data
@TableName(value = "d_open_door_record")
public class OpenDoorRecord {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id",type = IdType.AUTO)//指定自增策略
    private Long id;

    /** 项目id */
    @Excel(name = "项目id")
    private Long parkId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 房屋id */
    @Excel(name = "房屋id")
    private Long houseId;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 开门时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开门时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date openTime;

}
